package cn.dckeji.gameBox.controller;


import cn.dckeji.gameBox.common.utils.ResultUtil;
import cn.dckeji.gameBox.dto.Result;
import cn.dckeji.gameBox.entity.Information;
import cn.dckeji.gameBox.service.InformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Lucas
 * @since 2018-08-13
 */
@RestController
@RequestMapping("/information")
public class InformationController {
    @Autowired
    private InformationService informationService;
    /**
     * 禁用客户信息
     * @param information
     * @return
     */
    @PostMapping("saveInformation")
    public Result saveInformation(Information information) {
        informationService.updateById(information);
        return ResultUtil.success();
    }
}

